package com.shxt.model;

import java.util.HashMap;
import java.util.Map;

import com.shxt.pojo.D_User;
import com.shxt.service.D_UserService;
import com.shxt.tools.MD5Encryption;

public class ValidateLogin {
	public D_User validateUserLogin(String username,String password){
		Map<String,String> user_pass = new HashMap<String,String>();
		MD5Encryption md5 = new MD5Encryption();
		user_pass.put("M_Username", username);
		user_pass.put("M_Password", md5.getMD5(password));
		D_User user = new D_User();
		user = D_UserService.getInstance().validateUser(user_pass);
		return user;
	}
}
